package com.example.teesystem.entityDto;

import com.example.teesystem.entity.Issue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/5/10 14:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TrainingCorrectRate {
    private int issueId;
    private String question;

    private float correctRate;

    public TrainingCorrectRate(Issue issue, float correctRate){
        this.issueId = issue.getId();
        this.question = issue.getQuestion();
        this.correctRate = correctRate;
    }
}
